/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.mapper;


import com.koron.system.domain.DictType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DictTypeMapper {


    /**
     * insert dictType
     *
     * @param dictType
     * @return
     */
    Integer insert(@Param("dictType") DictType dictType);

    /**
     * update dictType
     *
     * @param dictType
     * @return
     */
    Integer update(@Param("dictType") DictType dictType);

    /**
     * delete dictType in batch
     *
     * @param idList
     * @return
     */
    Integer batchDetele(@Param("idList") List<String> idList);

    /**
     * query the one whose id is the given
     *
     * @param id
     * @return
     */
    DictType queryOne(@Param("id") String id);

    DictType queryByKey(@Param("dictKey") String dictKey);

    /**
     * query all dictType
     *
     * @return
     */
    List<DictType> queryAll(@Param("name") String name, @Param("start") Integer start, @Param("rows") Integer rows);

    /**
     * query list By name or dictkey
     *
     * @param name
     * @param dictKey
     * @return
     */
    List<DictType> queryByNameOrKey(@Param("name") String name, @Param("dictKey") String dictKey);

    /**
     * the number of all dictType
     *
     * @return
     */
    Integer countTotal();

    /**
     * update dictType in batch
     *
     * @param dictTypeList
     * @return
     */
    Integer batchUpdate(@Param("dictTypeList") List<DictType> dictTypeList);


}
